<?php 
    $objects = '[
					{   "id":1, 
                        "type":"S", 
                        "streetName":1, 
                        "direction":"B", 
                        "coords":[{"lon":2643017,"lat":6817440},{"lon":2643027,"lat":6817460},{"lon":2643027,"lat":6817440}]
                    },
                    {   "id":2, 
                        "type":"B", 
                        "streetName":1, 
                        "house":142, 
                        "coords":[{"lon":2642987,"lat":6817390},{"lon":2642997,"lat":6817380},{"lon":2642967,"lat":6817380}]
                    },
                    {	"id":3, 
                        "type":"S", 
                        "streetName":2, 
                        "direction":"L", 
                        "coords":[{"lon":2642957,"lat":6817390},{"lon":2642957,"lat":6817380},{"lon":2642927,"lat":6817380}]
                    }
				]';
    echo $objects;
?>